import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:get/get.dart';

import 'logic.dart';
import 'state.dart';

class MarkerPage extends StatefulWidget {
  MarkerPage({Key? key}) : super(key: key);

  @override
  _MarkerPageState createState() => _MarkerPageState();
}

class _MarkerPageState extends State<MarkerPage>{
  final MarkerLogic logic = Get.put(MarkerLogic());
  final MarkerState state = Get.find<MarkerLogic>().state;

  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        GetBuilder<MarkerLogic>(
          id: "tabBar",
          builder: (logic) {
            return Container(
              child: logic.tabBar,
            );
          },
        ),
        Expanded(
          flex: 1,
          child: GetBuilder<MarkerLogic>(
            id: "content",
            builder: (logic) {
              return Container(child: logic.pageView);
            },
          ),
        )
      ],
    );
  }

  // @override
  // bool get wantKeepAlive => true;
}
